package com.educhains.module.blog.persist.mybatis;

import com.educhains.module.blog.vo.BlogReply;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by Tengda Tang on 2017/8/22.
 */
@Repository
public interface BlogReplyMapper {
    List<BlogReply> showByPage(int start, int end, String blogId);

    List<BlogReply> getAllReplies(String blogId);

    void addReply(String replyId ,String blogId ,String userId, String content);

    List<BlogReply> getReply(String blogId, String locationId);

    void submitInFloorReply(String replyId, String userId, String blogId, String locationId, String content);

    List<BlogReply> getBlogReplyListByUserIdWithLimit(@Param("userId") String userId, @Param("limit") int limit);

    void addReplyNum(String replyId);
}